<template>
    <div class="header">
        <van-nav-bar
            :title="title"
            left-text=""
           
            left-arrow
            @click-left="onClickLeft"
  
/>

    </div>
</template>

<script >

    import Vue from 'vue';
    import { NavBar } from 'vant';
    import { Toast } from 'vant';

    Vue.use(NavBar);

    export default {
        props:['title'],
        data(){
            return {
                
            }
        },
        methods:{
         onClickLeft() {
                this.$router.back()
            },
        }
    }
</script>

<style lang="stylus" scoped>
    // .header
    //     height .44rem
    .header
        position sticky
        
</style>